package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;
import com.atguigu.common.utils.PageUtils;

/**
 * 商品三级分类
 *
 * @author liping
 * @email 1320516705@qq.com
 * @date 2024-02-19 09:14:24
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    void removeMenuByIds(List<Long> asList);

    void updateCascade(CategoryEntity category);

    Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getFromParentCid(List<CategoryEntity> categoryEntities,Long parentCid);

    Map<String,  List<Catelog2Vo>> getCatalogJson();

    List<CategoryEntity> cagetLevel1Categorys();
}

